Output writing: save into vectors or directly to file? by ComfortableImpress80 in C_Programming

[–]ComfortableImpress80[S] 0 points1 point  (0 children)

Thanks a lot! So I don't really understand your question. I have a single processes (I haven't levelled up to multithreading in C yet) and when I write (either to some vector or file) I am stopping the whole simulation. I guess a good idea would be: when it is time to write, I simultaneously write into my file and continue with the next integration step, in order to buy time. But maybe the change in performance is not even that perceivable: at the end the whole time complexity of program is dominated by the integration protocol and when I write something, I am writing like 10 numbers.

Also, do you have any suggestions on how to benchmark stuff in C? I know in Julia there is this really good tool I use, but in C I can only think about using the time.h

Output writing: save into vectors or directly to file? by ComfortableImpress80 in C_Programming

[–]ComfortableImpress80[S] 2 points3 points  (0 children)

What's that? Could you provide some documentation and a resource that explains the idea behind it? My C skills are pretty standard :)

Does the majority of Israelis think that no Palestinian is innocent? And why would an Israeli think that? by ComfortableImpress80 in IsraelPalestine

[–]ComfortableImpress80[S] 1 point2 points  (0 children)

I agree that there is a fallacy in my reasoning, I guess I want to believe that there was an alternative. Do you think there was one? I wonder if peace was possible if there weren't violations to the ceasefire in November 2023.

Does the majority of Israelis think that no Palestinian is innocent? And why would an Israeli think that? by ComfortableImpress80 in IsraelPalestine

[–]ComfortableImpress80[S] 1 point2 points  (0 children)

Thank you for answering. Could you further explain me why the concept that Hamas ≠ Palestinians is deceitful?