Re: [fpc-pascal] $IMPLICITEXCEPTIONS vs early function return

2023-07-15 Thread Jonas Maebe via fpc-pascal
On 15/07/2023 04:25, Hairy Pixels via fpc-pascal wrote: The manual says it makes all functions slower, 5-10%?? Does that apply to all functions or just ones with managed types in them? It's also curious why the try..finally block would have the kind of impact, all it does is call finalize func

Re: [fpc-pascal] $IMPLICITEXCEPTIONS vs early function return

2023-07-15 Thread Hairy Pixels via fpc-pascal
> On Jul 15, 2023, at 7:18 AM, Jonas Maebe via fpc-pascal > wrote: > > It also sets up an exception frame. FPC uses setjmp/longjmp for that, which > means that while restoring everything when an exception happens is fast, > saving the exception frame itself is relatively slow. Ok so just t

Re: [fpc-pascal] $IMPLICITEXCEPTIONS vs early function return

2023-07-15 Thread Jonas Maebe via fpc-pascal
On 15/07/2023 16:53, Hairy Pixels via fpc-pascal wrote: On Jul 15, 2023, at 7:18 AM, Jonas Maebe via fpc-pascal wrote: It also sets up an exception frame. FPC uses setjmp/longjmp for that, which means that while restoring everything when an exception happens is fast, saving the exception