java-just went from Java to PHP and encountered a problem referencing a class in another file.

Source: Internet
Author: User
Keywords Java Reference PHP Performance
Tags java reference
Java Reference PHP Performance

Java/c# references are all in the first few lines of the file, and this Daniel wants me to write PHP with references to dynamic references written in a certain class of methods.
I am puzzled, performance, convenience ...
Daniel's usage is like this (using the thinkphp framework, we do not discuss the framework good or bad, only speak PHP):

 Class Test{    function onePerson(){            import "lib.Person";            $p=new Person();            $p->talk();    }    function killPerson(){            import "lib.Person";            $p=new Person();            $p->kill($t);    }    funtion conmunication(){    ....    }}

He said that the dynamic reference, when used in this method to reference the file can save resources, then the server pressure will be reduced.
But I think this is very troublesome to write, very often a sentence of the outcome of the matter with three sentences to write.

C#,java are not so written, code redundancy, bored to death. Excuse me, does this kind of photo performance be high? Or is it a worry?
The company is concerned with performance issues. Why don't you write that java,c#?

Please help me analyze the analysis, or help me to instill some theoretical knowledge.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.