Comments (2)
Why does this build up a huge stack?
from binary.
runGetState takes the Lazy ByteString, and turns it into a list of chunks.
The leftover data that did not get consumed gets converted back into a Lazy ByteString. When that happens, empty chunks gets filtered out. The filter is not strict though.
When this gets repeated many times, there are lots of filters applied to the same lazy bytestring. These multiple filters can eat the whole stack.
The patch above solves it, but needs to be used for more functions in the module before we close this issue.
from binary.
Related Issues (20)
- Cut release for GHC 8.6.1 HOT 5
- Binary Instances for ByteArray, Array, etc. HOT 1
- I can't just get the answer and builder out of Put in a single call. HOT 2
- The `Binary Double` instance does not roundtrip. HOT 2
- Decoder prematurely reports "not enough bytes" HOT 3
- Cut release for GHC 8.8.1 HOT 5
- MonadFix instance required
- Cut release for GHC 8.10.1 HOT 5
- How does one specify a fixed length string?
- binary doesn't install with ghc 8.10.3 and containers 0.6.4.1 HOT 2
- How to change default byteorder? HOT 4
- Add Solo instance
- Export failG
- Generically instance HOT 1
- How to test?
- Ineffective INLINE pragmas on `many` method for `Alternative` `Get` instance.
- Inconsistent INLINE pragmas between word and int for builders.
- Performance of Generic-based instances. HOT 5
- Alternative instance for Get does not respect identity law in error situations
- Document safety expectations, or the lack thereof
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binary.