rmuir commented on PR #12766:
URL: https://github.com/apache/lucene/pull/12766#issuecomment-1793846009
I don't want to detect every possible option that could slow thing down,
instead ordinary configurations. Look at all the stuff being "sold" on
graalvm.org: lower resource usage, faster startup, cloud-friendly, etc. People
buy into this stuff. So people just download that JVM instead of the one you
might prefer, and then use it and lucene is slow?
The funniest part is that without this change, we encourage the user to add
incubating vector module, which then slows them down. if they just left alone,
performance is ok. In fact graal autovectorizes two of the binary methods (e.g.
dotproduct):
```
5.37% ↗ 0x00007fffded6a8d0: vmovq (%r8,%rdi,1),%xmm2
7.26% │ 0x00007fffded6a8d6: vmovq (%rcx,%rdi,1),%xmm3
11.71% │ 0x00007fffded6a8dc: vpmovsxbd %xmm2,%ymm2
3.88% │ 0x00007fffded6a8e1: vpmovsxbd %xmm3,%ymm3
4.72% │ 0x00007fffded6a8e6: vpmulld %ymm3,%ymm2,%ymm2
24.44% │ 0x00007fffded6a8eb: vpaddd %ymm2,%ymm1,%ymm1
30.07% │ 0x00007fffded6a8ef: lea 0x8(%rdi),%rdi
3.92% │ 0x00007fffded6a8f3: cmp %r9,%rdi
╰ 0x00007fffded6a8f6: jle 0x00007fffded6a8d0
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]