{"action":"opened","issue":{"url":"https://api.github.com/repos/Jasonchenlijian/FastBle/issues/362","repository_url":"https://api.github.com/repos/Jasonchenlijian/FastBle","labels_url":"https://api.github.com/repos/Jasonchenlijian/FastBle/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/Jasonchenlijian/FastBle/issues/362/comments","events_url":"https://api.github.com/repos/Jasonchenlijian/FastBle/issues/362/events","html_url":"https://github.com/Jasonchenlijian/FastBle/issues/362","id":391071962,"node_id":"MDU6SXNzdWUzOTEwNzE5NjI=","number":362,"title":"分包效率太低了","user":{"login":"766","id":6436579,"node_id":"MDQ6VXNlcjY0MzY1Nzk=","avatar_url":"https://avatars2.githubusercontent.com/u/6436579?v=4","gravatar_id":"","url":"https://api.github.com/users/766","html_url":"https://github.com/766","followers_url":"https://api.github.com/users/766/followers","following_url":"https://api.github.com/users/766/following{/other_user}","gists_url":"https://api.github.com/users/766/gists{/gist_id}","starred_url":"https://api.github.com/users/766/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/766/subscriptions","organizations_url":"https://api.github.com/users/766/orgs","repos_url":"https://api.github.com/users/766/repos","events_url":"https://api.github.com/users/766/events{/privacy}","received_events_url":"https://api.github.com/users/766/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-14T11:23:23Z","updated_at":"2018-12-14T11:23:23Z","closed_at":null,"author_association":"NONE","body":"`do {\r\n                byte[] rawData = new byte[data.length - index]; //我发送1M的数据，GC都忙不过来了\r\n                byte[] newData;\r\n                System.arraycopy(data, index, rawData, 0, data.length - index);\r\n                if (rawData.length <= count) {\r\n                    newData = new byte[rawData.length];\r\n                    System.arraycopy(rawData, 0, newData, 0, rawData.length);\r\n                    index += rawData.length;\r\n                } else {\r\n                    newData = new byte[count];\r\n                    System.arraycopy(data, index, newData, 0, count);\r\n                    index += count;\r\n                }\r\n                byteQueue.offer(newData);\r\n            } while (index < data.length);`"}}
{"actor":{"display_login":"766"}}