Avoid append + list. Apparently push + reverse is a lot faster. Thanks
to Dmitry.