Yeah, the LZO code is based on a C# port of MiniLZO. There are likely improvements to the compression ratio that could be made by rewriting the LZO implementation. My plan is to write my own LZO implementation from scratch.
While the Pascal library may achieve better compression ratio, my goal is to write better, hopefully more understandable code, and compression ratio is mostly a secondary concern. Still, I plan to address it eventually.
The Go version may be more interesting. It’s at Pangbox/pangcrypt.