Comments (7)
We talked over here where I work and would like to propose the following:
Allocate a single 1MB buffer for each ZHandle. Use an MVar to serialize all access to a ZHandle.
from haskell-zookeeper-client.
oops, I've just increased the limits in commit 8314924 :) Yep, single buffer seems to be a better idea! I'll think about it
from haskell-zookeeper-client.
Also, I just realized that we wouldn't need to serialize all the functions, only the get function.
I've written something like this and it seems to work:
type ZHandleInternal = ForeignPtr CBlob
data ZHandle = ZHandle { zh_ptr :: ZHandleInternal
, zh_value_buffer :: MVar CString
}
from haskell-zookeeper-client.
I've pushed a draft here: https://github.com/pheaver/haskell-zookeeper-client/tree/value_buffer
from haskell-zookeeper-client.
Should we create a separate persistent buffer for each thing (path, value, acl)?
from haskell-zookeeper-client.
I've been testing my changes and am satisfied with them. I'ved moved them to my master branch.
from haskell-zookeeper-client.
OK I've finally merged your changes into my repo :) Thanks a lot for your help!
from haskell-zookeeper-client.
Related Issues (12)
- License? HOT 1
- getChildren segfaults HOT 5
- segfaults HOT 1
- Is this being maintained? HOT 1
- Relicense to BSD3 or MIT HOT 2
- Is this working with the current stable version of Zookeeper? HOT 2
- Unknown event when connecting HOT 14
- eliminate lots of warnings HOT 2
- bad behavior when exception occurs in watcher HOT 2
- watchers stop working when ZHandle goes out of scope HOT 3
- Zookeper module name HOT 1
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 haskell-zookeeper-client.