{"shas":[["865148bfa36cbdd8369a1a72422aefb583abeded","5ad53a7bfb99d079ece747c1cac79be9244a8a4e@gmail.com","Increase javax.obex performance\n\nWhen a file is transferred over OBEX the javax.obex classes allocate\nthe same amount of memory multiple times simply to copy the same data\naround internally, only to throw those allocations away when the next\ndata block is processed. In the Bluetooth OPP case that meant that\n64Kb was allocated around 15 times for every 64Kb transferred. Since\nthe transfer speed is around 1.3Mbps that means almost 2.5Mb of\nmemory is garbage collected every second, increasing the time needed\nfor each block transfer.\nFixed by keeping data in reusable byte buffer objects instead.\nThe time to transfer a 39MB file is reduced by about 10-20%.\n\nAuthor =  Niklas Brunlid","MastaOfEvil"]],"ref":"refs/heads/gingerbread","size":1,"head":"865148bfa36cbdd8369a1a72422aefb583abeded","push_id":39465458}