Colton Idle
12/13/2022, 8:31 AMstate.curseWords = result.body()?.string()?.lines()
I'm predicting that this is bad for 2 reasons and wanted to sanity check if my reasoning is sound
1. string() could crash if the file is large enough? Best to use a "stream" (still learning about bytestreams, etc) but it makes sense that I'd want to "stream" the info into a list before checking if the list
2. If the list is extremely large, it might not even fit into a List<String> and so it might be best to stream the file and somehow on each line (while streaming) check if the username == currentWord in list.
Are my two assumptions above correct?Tolriq
12/13/2022, 8:47 AMColton Idle
12/13/2022, 9:05 AMTolriq
12/13/2022, 9:07 AMyschimke
12/13/2022, 9:39 AMyschimke
12/13/2022, 9:41 AMyschimke
12/13/2022, 9:41 AMyschimke
12/13/2022, 9:41 AMjessewilson
12/13/2022, 12:24 PMjessewilson
12/13/2022, 12:25 PMjessewilson
12/13/2022, 12:26 PMColton Idle
12/13/2022, 4:42 PMTolriq
12/13/2022, 4:46 PMColton Idle
12/13/2022, 4:48 PMjessewilson
12/13/2022, 5:22 PMyschimke
12/13/2022, 6:58 PMyschimke
12/18/2022, 8:37 AM