How to avoid running out of memory in high memory usage application? C / C++

前端 未结 15 2292
天命终不由人
天命终不由人 2021-02-19 14:04

I have written a converter that takes openstreetmap xml files and converts them to a binary runtime rendering format that is typically about 10% of the original size. Input file

15条回答
  •  醉话见心
    2021-02-19 14:22

    It sound like you are doing txt to binary conversation so why do you need to have the entire data in the memory?.
    Can't you just read a primitive from txt (xml) then save to binarystream?

提交回复
热议问题