The most efficient way to search for an array of strings in another string

后端 未结 8 2512
礼貌的吻别
礼貌的吻别 2021-02-12 15:12

I have a large arrray of strings that looks something like this: String temp[] = new String[200000].

I have another String, let\'s call it bigtext. What I ne

8条回答
  •  滥情空心
    2021-02-12 16:08

    If you have additional information about temp, you can maybe improve the iteration.

    You can also reduce the time spent, if you parallelize the iteration.

提交回复
热议问题