serialization - How to store HashMap values separately in scala? -
serialization - How to store HashMap values separately in scala? -
i have scala hashmap generated 1 app , used another. hashmap big,like 100mb of size or more.
var actmap = new collection.mutable.hashmap[string, seq[object]];
currently whole map loaded in memory sec app when starts.i trying load keys in memory , later when looking key in map,it should give value stored in disk. there anyway accomplish this? individually saving every value , accessing them on fly take lot of time if standard serialization used. alternatives?
you might want think using memory mapped files this. roll own.
assuming can alter interface , utilize 3rd party libraries at
http://software.clapper.org/javautil/api/org/clapper/util/misc/filehashmap.html
https://github.com/bmc/javautil/blob/master/src/main/java/org/clapper/util/misc/filehashmap.java
scala serialization hashmap
Comments
Post a Comment