Re: [fpc-pascal] How to avoid Copy

2023-12-31 Thread Hairy Pixels via fpc-pascal
> On Dec 30, 2023, at 3:18 PM, Michael Van Canneyt via fpc-pascal > wrote: > > And try to avoid "for r in data" because it will create a copy for each > element > in the list. This seems more like bad compiler design than anything. From the users perspective a for loop is a read-only

Re: [fpc-pascal] How to avoid Copy

2023-12-31 Thread Michael Van Canneyt via fpc-pascal
On Sun, 31 Dec 2023, Amir--- via fpc-pascal wrote: On 12/31/23 02:46, Marco van de Voort via fpc-pascal wrote: Op 31/12/2023 om 04:11 schreef Amir--- via fpc-pascal: I compiled the code with `fpc -O3 -Sd -gv -g -gl ` and ran `valgrind` on it (the output is attached). It does not look

Re: [fpc-pascal] How to avoid Copy

2023-12-31 Thread Amir--- via fpc-pascal
On 12/31/23 02:46, Marco van de Voort via fpc-pascal wrote: Op 31/12/2023 om 04:11 schreef Amir--- via fpc-pascal: I compiled the code with `fpc -O3 -Sd -gv -g -gl ` and ran `valgrind` on it (the output is attached). It does not look like there is a big difference between the Check1 and

Re: [fpc-pascal] Daily snapshots?

2023-12-31 Thread Nico Neumann via fpc-pascal
Running a GUI application (like Lazarus) from a container isn't that complicated (just make sure you trust the container you run (depends on your approach) [1]): - mounting/forwarding your X server socket to the container application - remote desktop to the container via VNC or xrdp To simplify

Re: [fpc-pascal] How to avoid Copy

2023-12-31 Thread Marco van de Voort via fpc-pascal
Op 31/12/2023 om 04:11 schreef Amir--- via fpc-pascal: I compiled the code with `fpc -O3 -Sd -gv -g -gl ` and ran `valgrind` on it (the output is attached). It does not look like there is a big difference between the Check1 and Check2 but Check3 is about 20 times faster than the other two.