Skip to content
Snippets Groups Projects
  1. Dec 07, 2024
  2. Nov 23, 2024
  3. Nov 22, 2024
  4. Nov 21, 2024
  5. Oct 16, 2024
  6. Aug 28, 2024
  7. Aug 17, 2024
  8. Aug 13, 2024
  9. Aug 09, 2024
  10. Jul 31, 2024
  11. Jul 20, 2024
  12. May 15, 2024
  13. May 13, 2024
  14. May 11, 2024
    • Oliver Kurz's avatar
      Improve include time of Mojo::Base by extracting monkey_patch · 9637ef07
      Oliver Kurz authored
      Commit 7e9a2ad1 introduced a "require Mojo::Util" causing a significant
      chain of further dependencies being pulled in which IMHO should be
      avoided for the very base module which is in particular being advertised
      as useful for just enabling static code checks and common import checks.
      
      This commit moves out the function "monkey_patch" into its own module to
      break or prevent the circular dependency between Mojo::Base and
      Mojo::Util.
      
      With that the import of Mojo::Base is more efficient,
      `time perl -e 'use Mojo::Base`
      on my system reduced from 224±12.08 ms to 52.0±2.3 ms which I consider a
      considerable improvement for Mojo::Base which is used as a baseclass in
      many cases.
      
      Further minor changes included:
      * Directly require MonkeyPatch for cleaner subclassing + POD
      * Correct use of MonkeyPatch with empty import
      * Combine monkey_patch and class_to_path in new Mojo::BaseUtil
      9637ef07
    • Sebastian Riedel's avatar
      Use the latest version of perltidy · e131bb14
      Sebastian Riedel authored
      e131bb14
  15. Mar 24, 2024
Loading