Cache read / write speedup
Opened this issue · 0 comments
sounisi5011 commented
Cache data is stored in files using flat-cache.
The format of the cache data is JSON. For this reason, special conversion processing is performed to store Buffer in JSON. This is a problem caused by using JSON, and is a useless conversion.
Also, since all cache data needs to be parsed, the processing speed will be reduced if the cache becomes too large.
There are two problems to solve:
- Change to cache data format that can store Buffer directly (e.g. BSON, MessagePack, Protocol Buffers, FlatBuffers and Cap’n Proto)
- Change to a cache data format that does not parse all data (e.g. FlatBuffers and Cap’n Proto)
References: