String Builder vs Lists

前端 未结 5 1970
野的像风
野的像风 2021-01-17 01:19

I am reading in multiple files in with millions of lines and I am creating a list of all line numbers that have a specific issue. For example if a specific field is left bla

5条回答
  •  自闭症患者
    2021-01-17 01:30

    Is your output supposed to be human readable? If so, you'll hit the limit of what is reasonable to read, long before you have any performance/memory issues from your data structure. Use whatever is easiest for you to work with.

    If the output is supposed to be machine readable, then that output might suggest an appropriate data structure.

提交回复
热议问题