| Summary: | LocalFileNatives#nativeAttributes is very slow on Windows 7 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Heiko Böttger <heiko.boettger> | ||||||
| Component: | Resources | Assignee: | Szymon Ptaszkiewicz <sptaszkiewicz> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | john.arthorne, remy.suen, sptaszkiewicz, Szymon.Brandys | ||||||
| Version: | 3.6.2 | Keywords: | performance | ||||||
| Target Milestone: | 3.8 M3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Heiko Böttger
We should certainly be able to cache the result of calling nativeAttributes. I can't see any reason to call that more than once per Eclipse session. Created attachment 204879 [details]
Patch v1
Wow, that goes fast. Many thanks. Heiko (In reply to comment #3) > Wow, that goes fast. Many thanks. > Heiko Heiko, have you already tested the fix? John, can you review this patch for me? This is close, but note the nativeAttributes method doc: * This is an optional method: if it has not been compiled * into the native library, the client must catch the * resulting UnsatisfiedLinkError In your patch it will log an error message which will be confusing. This particular UnsatisfiedLinkError should be handled silently (the case where the library is present, but is missing this one function). Created attachment 205401 [details]
Patch v2
Corrected patch to handle silently UnsatisfiedLinkError from #nativeAttributes().
Looks good Szymon. Feel free to release this. Thanks John! Fixed in master. |