Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RAM: .phar or plugin/src/

Comments in 'Plugin Development' started by Cristalix, Oct 7, 2015.

  1. Cristalix
    Offline

    Cristalix New Member

    Joined:
    Sep 10, 2015
    Posts:
    38
    Minecraft User:
    Gistrec
    When the plugin needs more more RAM memory?
    When plugin compiled (*.phar) or not (plugin/scr/plugin/*.php) ?
  2. Kripak
    Offline

    Kripak New Member

    Joined:
    Jul 17, 2015
    Posts:
    45
    Minecraft User:
    Kripak
    Cristalix dno
  3. Kvetinac97
    Offline

    Kvetinac97 Active Member Plugin Developer

    Joined:
    Nov 17, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    Kvetinac97
    .phar is better cuz when you load /src/ you need DevTools .phar and the difference is minimal.
    Cristalix likes this.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Files inside a phar are loaded faster than file in your filesystem, so phar is better. But in terms of RAM, I don't think there is a lot of difference.
    @Kvetinac97 we are discussing about the difference caused by the plugin loading itself, not by the method to load the plugin. DevTools is not the only method to load source plugins, and loading DevTools has extremely negligible effect of both RAM and performance.
    Cristalix and Kvetinac97 like this.

Share This Page

Advertisement