-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 10/10/13 20:18, Richard Yao wrote:
> Thanks for letting us know about this. I have a few comments:
>
Received: from [64.62.153.212] (helo=anubis.delphij.net)
by node002.open-zfs.net
with esmtp (HybridCluster distributed mail proxy)
(envelope-from <[email protected]>); Fri, 11 Oct 2013 03:29:49 -0000
> 1. We could eliminate a branch entirely by doing this:
>
> mlen = MIN(d_end - dst, mlen); while (--mlen >= 0) *dst++ = *cpy++
I don't think this eliminates the branching as MIN is usually a macro
that expands to a > b ? b : a.
> 2. This optimization could become a generic optimization pass in
> the system compiler. If anyone wants to be helpful, I would
> suggest sending this patch to the developers of both LLVM and GCC.
I would ask a LLVM developers for that. If you know any GCC
developer, it would be great to let them know as well.
> 3. Have any benchmarks been done to quantify the performance
> improvement? That should not be required to merge this, but if any
> benchmarks have been done, I would like to see them for my own
> curiosity.
Well to tell the truth I didn't benchmarked the code because looking
at the assembler, the change is quite clearly an improvement (smaller
code inside the loop and the actual working code is quite simple).
The author did some benchmarks and claims to have 6% to 10%
improvement over the previous version of code with various different
types of data, but it is still interesting if someone would do a
scientific benchmark.
> On 10/10/2013 10:39 PM, Xin Li wrote:
>> Hi,
>>
>> FYI, I think you may be interested in one of our (FreeBSD)
>> recent change to lzjb decompression.
>>
>> FreeBSD r256132:
>>
>> Improve lzjb decompress performance by reorganizing the code to
>> tighten the copy loop.
>>
>> Received: from [64.62.153.212] (helo=anubis.delphij.net) by
>> node002.open-zfs.net with esmtp (HybridCluster distributed mail
>> proxy) (envelope-from <[email protected]>); Fri, 11 Oct 2013
>> 02:39:10 -0000 Submitted by: Denis Ahrens <denis h3q com>
>>
>> Should I file a ticket for this for tracking?
>>
>> Cheers,
>>
>>
>>
>> _______________________________________________ developer
>> mailing list [email protected]
>> http://lists.open-zfs.org/mailman/listinfo/developer
>>
>
>
- --
Xin LI <[email protected]> https://www.delphij.net/
FreeBSD - The Power to Serve! Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)
iQIcBAEBCgAGBQJSV3CrAAoJEJW2GBstM+ns1SEQAKDwqQ2Z0usdz9iAC7vt9skM
wlEBAS2pPvBSkHPyY7Q7gsN8818TnzlSssR7SISQHOM7ao9Ap7YPtnX4jh7TutlF
4pzYk8Jk67vPvrsy9r94NYqFXGjKrSEMLm6Xfm96wHy582VkEe6g1tf6Bgto0rsl
8avaCt++n5DSswx1oszOcYPC4mWCZOEW3hSG8wUqUbvJUoXreUUSTZDNNLK+9qZB
VYtwpFAcYbOG85i7XdiUYiK9lN+l95eIBkXNYrXXcJsDDj+CgP8w+An25AKm90Zs
QM/HKnX7V1nsBWenRq6+kDyfE7Nj0ETJin1DhzkuXROw2asXyjwU2l3DjgVmbR7T
Received: from [64.62.153.212] (helo=anubis.delphij.net)
by node002.open-zfs.net
with esmtp (HybridCluster distributed mail proxy)
(envelope-from <[email protected]>); Fri, 11 Oct 2013 03:29:49 -0000
drHehKvBz7uY0TaSeWgpyqTbBp2vBJiHTTrNpODaKHmiD5DO/6fqsOryvRjoCsj9
bRoch2axqjbukrdw59RFpILEwiyruq9wUWiV5Tum0SG1flraVdJ70733eG6VDkSo
S9LVlfQVMLZrFLo1Ccp1mhqA797MYILaTgQ+ZwUvyFVmLgJoSZzDoHQp0xek/fPb
bzgRSnL3JBNN8/461qLyh5LSj3ENU8yuseE1PL6fS/KWUhereqJKgY5rJU7psfjZ
iBCtZJgIBgjX+l+iPiiFnqXHT3nXJ2rersxykeY97yfPkQk/QP6OCQob50En//p4
H2/MkwPXwnm6iEC9jQPA
=hAp8
-----END PGP SIGNATURE-----
_______________________________________________
developer mailing list
[email protected]
http://lists.open-zfs.org/mailman/listinfo/developer