On my Galaxy S 1 (GT-i9000) with less than 512MB ram, Marshmallow works ok if you disable multitasking and don't install google services.
For further speed boosts I use apps from F-Droid as these tend to be more lightweight, and the old version of Opera Mini for browsing.