ClojureScript

optimize dead code elimination

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

When compiling some code I noticed that cljs.core.apply doesn't get removed, I suspect this may trigger other fns to also not get eliminated. Needs investigation.

Activity

Hide
David Nolen added a comment - - edited

It looks like removing apply manually eliminates apply-to as expected. Another dead code elimination issue - the global-hierarchy atom. No need to emit this if the user never uses multimethods.

Show
David Nolen added a comment - - edited It looks like removing apply manually eliminates apply-to as expected. Another dead code elimination issue - the global-hierarchy atom. No need to emit this if the user never uses multimethods.
Hide
David Nolen added a comment -

Global hierarchy atom issue has been addressed in master.

Show
David Nolen added a comment - Global hierarchy atom issue has been addressed in master.
Hide
David Nolen added a comment -

This has been addressed in master, hello world is quite tiny now. It will only get smaller when real Keywords land.

Show
David Nolen added a comment - This has been addressed in master, hello world is quite tiny now. It will only get smaller when real Keywords land.

People

Vote (1)
Watch (4)

Dates

  • Created:
    Updated:
    Resolved: