<HTML><HEAD><META content="text/html; charset=UTF-8" http-equiv="Content-Type"></HEAD><BODY>I think you can attach source code to a JIRA issue. Please let me know if it does not work.<BR>
<BR>
Netty's buffer is simply a byte[]. There is no reason why little endian access should be that slow.<BR>
<BR>
Thanks<BR>
<BR>
Replicator wrote:<BR>
> @Trustin,<BR>
><BR>
> I could, but I can't attach any code to it ( unfortunately ) => will it<BR>
> still make sense to do so?<BR>
><BR>
> I guess what I want to understand: is that expected? Because Netty does<BR>
> translation for each frame?<BR>
><BR>
> Thank you!<BR>
><BR>
> On Thu, Oct 27, 2011 at 2:25 PM, Trustin Lee [via Netty Forums and Mailing<BR>
> Lists]<ml-node+s685743n6937496h75@n2.nabble.com> wrote:<BR>
><BR>
>> It sounds awfully slow. Could you file a JIRA issue?<BR>
>><BR>
>> Thanks,<BR>
>> Trustin<BR>
>><BR>
>><BR>
>> Replicator wrote:<BR>
>>> bootstrap.setOption( "bufferFactory", new HeapChannelBufferFactory(<BR>
>>> ByteOrder.LITTLE_ENDIAN ) )<BR>
>>><BR>
>>> on my client<BR>
>>><BR>
>>> and<BR>
>>><BR>
>>> bootstrap.setOption( "child.bufferFactory", new<BR>
>>> HeapChannelBufferFactory( ByteOrder.LITTLE_ENDIAN ) )<BR>
>>><BR>
>>> on my test server<BR>
>>><BR>
>>> On Thu, Oct 27, 2011 at 6:43 AM, Norman Maurer-2 [via Netty Forums and<BR>
>>> Mailing Lists]<[hidden email]<http://user/SendEmail.jtp?type=node&node=6937496&i=0>><BR>
>> wrote:<BR>
>>>> How do you do set it to LITTLE ENDIAN ? Setting a ChannelBufferFactory<BR>
>>>> via SocketConfig ?<BR>
>>>><BR>
>>>> Bye,<BR>
>>>> Norman<BR>
>>>><BR>
>>>><BR>
>>>> 2011/10/27 zx spectrum<[hidden email]<<BR>
>> http://user/SendEmail.jtp?type=node&node=6935794&i=0>>:<BR>
>><BR>
>>>><BR>
>>>>> Seems like a simple test with a FrameDecoder runs about 9(!) times<BR>
>> slower<BR>
>>>> if<BR>
>>>>> everything is set to LITTLE ENDIAN, than the same test with a default (<BR>
>>>> BIG<BR>
>>>>> ENDIAN ).<BR>
>>>>> Is that expected? ( because Netty needs to do the conversion for every<BR>
>>>>> frame? )<BR>
>>>>> Is there a way to improve it to be as good as BIG ENDIAN?<BR>
>>>>> Thank you!<BR>
>>>>> _______________________________________________<BR>
>>>>> netty-users mailing list<BR>
>>>>> [hidden email]<http://user/SendEmail.jtp?type=node&node=6935794&i=1><BR>
>>>>> https://lists.jboss.org/mailman/listinfo/netty-users<BR>
>>>>><BR>
>>>> _______________________________________________<BR>
>>>> netty-users mailing list<BR>
>>>> [hidden email]<http://user/SendEmail.jtp?type=node&node=6935794&i=2><BR>
>>>> https://lists.jboss.org/mailman/listinfo/netty-users<BR>
>>>><BR>
>>>><BR>
>>>> ------------------------------<BR>
>>>> If you reply to this email, your message will be added to the<BR>
>> discussion<BR>
>>>> below:<BR>
>>>><BR>
>>>><BR>
>> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/LITTLE-ENDIAN-Performance-tp6935190p6935794.html<BR>
>>>> To unsubscribe from LITTLE ENDIAN: Performance, click here< >><BR>
>>>><BR>
>>><BR>
>>> --<BR>
>>> View this message in context:<BR>
>> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/LITTLE-ENDIAN-Performance-tp6935190p6936360.html<BR>
>>> Sent from the Netty User Group mailing list archive at Nabble.com.<BR>
>>> _______________________________________________<BR>
>>> netty-users mailing list<BR>
>>> [hidden email]<http://user/SendEmail.jtp?type=node&node=6937496&i=1><BR>
>>> https://lists.jboss.org/mailman/listinfo/netty-users<BR>
>> _______________________________________________<BR>
>> netty-users mailing list<BR>
>> [hidden email]<http://user/SendEmail.jtp?type=node&node=6937496&i=2><BR>
>> https://lists.jboss.org/mailman/listinfo/netty-users<BR>
>> what we call human nature in actuality is human habit<BR>
>> http://gleamynode.net/<BR>
>><BR>
>><BR>
>> ------------------------------<BR>
>> If you reply to this email, your message will be added to the discussion<BR>
>> below:<BR>
>><BR>
>> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/LITTLE-ENDIAN-Performance-tp6935190p6937496.html<BR>
>> To unsubscribe from LITTLE ENDIAN: Performance, click here<http://netty-forums-and-mailing-lists.685743.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6935190&code=d2ViYWthdW50QGdtYWlsLmNvbXw2OTM1MTkwfC0xODA0ODQ0MTcz>.<BR>
>><BR>
>><BR>
><BR>
><BR>
> --<BR>
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/LITTLE-ENDIAN-Performance-tp6935190p6937516.html<BR>
> Sent from the Netty User Group mailing list archive at Nabble.com.<BR>
> _______________________________________________<BR>
> netty-users mailing list<BR>
> netty-users@lists.jboss.org<BR>
> https://lists.jboss.org/mailman/listinfo/netty-users</BODY></HTML>