Sometimes it takes a really long time to save a file out. Saving the same file after various changes takes various amounts of time. It does not seem to be related to file size.
I've disabled any plugins that could possibly do something at save time (I think). It is probably one of my autocommand groups so I'll be disabling them one at a time next.
But this got me thinking. I know you can profile startup in a very detailed way. I was wondering if it was possible to do the same for save? Then I could see which plugin or autocommand group is taking the most time, make adjustments, and compare the actual times.
Is it possible to profile save times in a similar way to which we can profile startup times?