However,Even though there are a total of 250,000 rows, and your data size is around ~38MB. At this size, it's unlikely to see a noticeable difference in grouping speed.
Even though thedata.table's grouping is >100x faster here, it's clearly not the reason for such slowness...