davisp/jiffy — Issue #9: Some sort of size limitation
Author: si14
Created: 2011-11-13 19:43:39+00:00
State: open

Just a thought: maybe it would be a good idea to put some constraints on the input size (which should be overridable, of course)? The reason is that a long-running NIF will ruin an Erlang VM's scheduler, so it's not too wise to throw too much JSON in a single call. We can prevent this mistake by uploading an encoding/decoding to a separate thread or by putting constraints. I think the latter is easier.