The large file is the pascal source or the lfm file?
I have no idea how lfm file handling is implemented. Sourceeditor should do well with large file (very large files may take a bit for the initial load / files with lines longer than 1 million may be trouble)
If it is processing of a large file, it could be some string processing (copy parts of the string, changing parts) which (if done unoptimized) can lead to excessive amount of memory alloc/dealloc.
First thing to ensure is, your IDE (in case you ever recompiled it) is build without -gh / heaptrc => that slows such code further down.
But from the description it all comes down to guessing (related to the speed issues). Run in valgrind, and see where the time goes...
The IDE has been running very slowly for me for some time.
I am somewhat assuming you refer to the form designer being slow?
Or are there other parts?
Could be the amount of handles with the WS...
Could be a lot of autosize cycles, if you have lots of autosized controls