[COMPASS-820] Static assets all live under ./static Created: 27/Feb/17  Updated: 10/Jan/24  Resolved: 31/Oct/18

Status: Closed
Project: Compass
Component/s: Performance
Affects Version/s: 1.7.0-dev
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Peter Schmidt Assignee: Lucas Hrabovsky (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Epic Link: COMPASS-1405
Story Points: 3
Sprint: Iteration Icelandiccharr, Iteration Jalapeño

 Description   

This will improve the Windows installation experience in two ways:
1. Installation assets to be decompressed before installation begins
2. Installation assets trigger less activity like to be disrupted by a virus scanner

  • Make a new ./static directory
  • Move {{./src/app/ {images,styles}

    }} and HTML files into ./static

  • Update all image references in the app and hadron-build to point at ./static
  • Update hadron-build to write ./src/compiled-less to{{./static}}
  • Add ./static to the asar.upack option in hadron-build/commands/release.js (they don’t need to be packed)

Also consider updating any timing code to use lucas.hrabovsky suggestion: https://github.com/nolanlawson/marky

References

If all goes well, this will negate https://jira.mongodb.org/browse/COMPASS-415



 Comments   
Comment by Lucas Hrabovsky (Inactive) [ 31/Oct/18 ]

COMPASS-1405 will move away from Squirrel to .msi which negates the spirit of this ticket

Comment by Peter Schmidt [ 27/Feb/17 ]

This is actually a completely different aspect of performance relative to COMPASS-601 or COMPASS-821, and may have significant merit in that these assets need not be decompressed every time we start Compass.

However I haven't seen any direct data to confirm it's a real performance bottleneck yet, if that exists, it would be useful

Generated at Wed Feb 07 22:26:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.