In my simple mind, if software has been "released" it is no longer R&D, and "bug fixes" (which should include continuous improvements such as your example) are not research.
I may be way, way wrong though.
I may be way, way wrong though.
If it leads to a new release, then its software dev. Meaning anything more than a minor patch is going to count.