![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 24.11.2004 Skąd: Szczecin Ostrzeżenie: (0%) ![]() ![]() |
Dzisiaj miałem średnio miłą sytuację. Otóż postanowiłem zainicjalizować wykorzystanie modelu MVC w nowym projekcie firmy. W tym celu przygotowałem wykład dla dyrekcji, oraz współpracowników i niestety zostałem zbojkotowany.
Niektóre argumenty które padły przeciwko temu rozwiązaniu to: - zbyt duży rozmiar plików z klasami - pochłanianie dużej ilości pamięci przy operacjach - powolność rozwiązania, gdyż większość operacji wykonywana jest na obiektach (padło porównanie do powolności w Java) - obiekty będą wykorzystywane ale w prostszy sposób, bez zbędnego komplikowania postulatami MVC Powiem szczerze, że po tej dyskusji, jestem dosyć przygnębiony. Włożyłem w to dużo pracy, która poszła na marne. Czy możecie mi przytoczyć jakieś mocne argumenty, dlaczego rozwiązanie oparte na MVC będzie lepsze? Co ogólnie o tym myślicie? |
|
|
![]() |
![]() ![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 358 Pomógł: 0 Dołączył: 3.07.2003 Skąd: Szczecin->niebuszewo->*(next to window) Ostrzeżenie: (0%) ![]() ![]() |
Zaczerpnelem z elektronicznej wersji tej ksiazki
Niestety nie mozna uzywac html'a na tym fotum wiec musi wygladac to tak: Cytat The tests were done on:
CGI Perl scripts The traditional way to code web sites and applications just one or two years ago FastCGI Perl scripts A mechanism to improve the performance problems of CGI scripts Python CGI scripts In this case we used Python to code CGI scripts mod_python Python scripts An Apache module to let Apache run Python code without calling the Python interpreter C CGI scripts Compiled C scripts running as CGI programs mod_perl Perl scripts An Apache module to let Apache run Perl scripts without having to execute the Perl interpreter php To compare the other languages to php, the same test were run on php After several benchmarks, including different script types and server loads, it was found that mod_perl, FastCGi, and php were the fastest options with very similar results. Therefore, if a php site or script is facing a performance problem then the solution is to work with the code and not change the language. The Benchmarks Test 1 – 1000 executions of a very short script: Language Time (seconds) C 20.6 Perl 23.8 Python 45.2 php 16.0 mod_python 30.0 mod_perl 16.4 FastCGI 16.4 Test 2 – 1000 executions of a long script, more than 1000 lines of code: Language Time (seconds) C 258 Perl 963 Python 978 php 304 mod_python 347 mod_perl 476 FastCGI 280 Ten post edytował squid 9.12.2004, 16:19:38 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 9.10.2025 - 07:58 |