Loading a map using Properties class

前端 未结 2 1389
甜味超标
甜味超标 2020-11-30 15:55

I have a map with 75000 entries and each entry value will be of size 10kb on average.

I load this map into memory using Properties class . But due to the size of the

2条回答
  •  广开言路
    2020-11-30 16:11

    I assume you don't need to load all the properties at the same time, but you rather need to iterate through all properties. Personally, I would go with parsing manually the file line by line and working in a stream-like fashion. If there is a lib for processing very large property I don't know it.

提交回复
热议问题