• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does CI4 is as fast as CI3 or it is under testing?

#1
As i am seeing most of the ci4 development is done and may be official release is coming soon. My Reason to ask this question is to start my new project on ci4 if the performance is same as CI3. I can go with Phalcon but i cannot trust their community for future support. Please Help. I am seriously stuck.
Reply

#2
@vinay_ethane,

Here is a thread that might assist you in your decision. https://forum.codeigniter.com/thread-70912.html
Reply

#3
No strict performance tests have been made between the two, but overall I'm very happy with the performance. It's been a while since I've worked on a CI3 project but the out of the box, "Hello World", example match what I remember from CI3. I think the database engine might have gotten a little bit slower, but I have yet to go back in and start optimizing anything there, so I would expect that to improve in the future.
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply

#4
I'm also happy with CI4 performance. But looking the toolbar says "80 files" worries me. Also I've encounter php error on my controller script and saw call stack up to 12 rows. While usually saw 6 to 8 rows on CI3.
Reply

#5
If you're happy with performance, why fretting over the number of files loading?

Yes, the framework is a little more flexible now, which requires a slitghtly different structure to the files, and often has more of them the CI3 would have used. If your site's not getting slow, though, don't worry about it. Smile
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
Reply

#6
(07-28-2018, 01:11 AM)anthos1984 Wrote: I'm also happy  with CI4 performance. But looking the toolbar says "80 files" worries me. Also I've encounter php error on my controller script and saw call stack up to 12 rows. While usually saw 6 to 8 rows on CI3.

The server of a production site should be using an OpCode cache system of some flavor. OpCode cache solutions store precompiled script bytecode in memory during the first execution of a specific PHP file.

Don't forget that servers are designed to... well, serve files, lots of files, very quickly.
Reply

#7
(07-28-2018, 01:11 AM)anthos1984 Wrote: I'm also happy  with CI4 performance. But looking the toolbar says "80 files" worries me. Also I've encounter php error on my controller script and saw call stack up to 12 rows. While usually saw 6 to 8 rows on CI3.

Anytime you're feeling bad about performance, number of files loaded, or number of queries loaded, just think about how there are so many websites using WordPress, and how terrible that is. It should make you feel better. I'm working on a WordPress website right now, and the owner has 48 active plugins. MySQL log shows that loading the home page results in 154 queries. Trust me, you could use CI4 and it's not going to be the limiting factor.
Reply

#8
48 active plugins?

I feel your pain.
Reply

#9
(07-29-2018, 06:47 AM)dave friend Wrote: The server of a production site should be using an OpCode cache system of some flavor. OpCode cache solutions store precompiled script bytecode in memory during the first execution of a specific PHP file.

That is what I wanted to. But seems not supported for now (for PHP).
Being desktop and embedded system programmer, that what I usually did. The program running fast because it compiled before and running as machine code. No matter how complex OOP code you have, the compiler did the optimization.
You create using complex OOP (  Heart this) or simple assembly language (with headache Smile ), the result is same.

As for website, the optimization I can do is minifying CI views, js, css and everything CI can offer to increase performance (class_map, balancing router rules vs auto route, view caching,etc (please show me if there is more))
Reply

#10
(07-29-2018, 09:35 PM)anthos1984 Wrote: That is what I wanted to. But seems not supported for now (for PHP)..

Look into OPcache.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.