#18753 closed defect (duplicate)
OpeningHourTest.ENGINE uses/wastes 10 MB of heap memory
Reported by: | simon04 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core validator | Version: | |
Keywords: | opening_hours webservice remote nashorn | Cc: | Don-vip, ypid23, stoecker |
Description
After OpeningHourTest#initialize
, the retained size of OpeningHourTest.ENGINE
is 10_497_152 bytes. As suggested in ticket:18140#comment:2, we could deploy and make use of a webservice for validating opening_hours
Revision:15912 Is-Local-Build:true Build-Date:2020-02-23 13:47:40 Identification: JOSM/1.5 (15912 SVN de) Linux Arch Linux Memory Usage: 360 MB / 3972 MB (133 MB allocated, but free) Java version: 11.0.6+10, Oracle Corporation, OpenJDK 64-Bit Server VM Screen: :0.0 3840x2160 Maximum Screen Size: 3840x2160
Attachments (0)
Change History (9)
comment:1 by , 5 years ago
Cc: | added |
---|---|
Keywords: | nashorn added |
comment:2 by , 5 years ago
Milestone: | → 20.03 |
---|
comment:3 by , 5 years ago
Here's a draft implementation: https://github.com/opening-hours/opening_hours_server.js/pull/3
follow-ups: 5 6 comment:4 by , 5 years ago
Parsing the opening hours data should not need an online API. It is not complex enough to verify that. What speaks against the Java implementation?
comment:5 by , 5 years ago
comment:6 by , 5 years ago
Replying to stoecker:
What speaks against the Java implementation?
According to #18140, the reported errors are not as helpful opening_hours.js:
<simonpoole> I really need to have a look at generating more descriptive error messages in my parser and add an evaluator but its a month ot two work I suspect
We'd loose the detailed error messages plus the autofix.
comment:7 by , 5 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closed as duplicate of #18140.
comment:8 by , 5 years ago
Let's keep the discussion together in one issue (here we've been discussing the Java implementation and in #18140 the JavaScript servlet).
comment:9 by , 5 years ago
Milestone: | 20.03 |
---|
Maybe we could do both: embed OpeningHoursParser as described in #18140, so that we keep a low-memory & offline validator. And also provide a web service running opening_hours.js. This way, we will still provide a way to detect issues reported by opening_hours.js and not by OpeningHoursParser.