Re: Cake 1.2 is slow (4s...)

2008-11-07 Thread Remigijus

Well, many thanks to Martin for useful information. Yes, you right
saying that I am
running CakePHP on the xampp. But in Linux server, website works many
times
faster than on *amps. Well I think you also right saying that memory
usage is not problem here.
So thanks for really good answer ;]



On Nov 7, 11:42 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Remigijus:
> Memory usage is not something you should be overly concerned with on a
> development machine. (which I guess is what you are testing) If you
> are using WAMP or XAMPP or something like them then you are basically
> faking a *nix environment for php to run in. This is probably not the
> most memory efficient setup for CakePHP on Windows. Have you tried
> running Cake on a more "native" Windows installation? It is a pain to
> install (or it was last time I gave it a go) but should run both
> faster and more efficient than the *AMPs.
>
> I tried pasting your memory-snipped into my layout and got back
> results between 1.3 and 1.5 MB on two different apps. But if I look at
> the apache processes, each on is between 12 and 20 MB of system
> memory. My point is that 5MB measured may vary with the type of php
> installation. I am not knowledgeable about how php measures memory but
> I can imagine that as a apache module it measures only "itself" but as
> a cgi or fcgi process it may include the overhead of the "cgi-
> wrapper". Apache also has a different "worker" setup for Windows that
> may affect memory usage.
>
> /Martin
>
> On Nov 7, 9:09 am, Remigijus <[EMAIL PROTECTED]> wrote:
>
> > Well, I found my problem. It's windows. I have put source code on
> > Linux, and results are
>
> > Memory used with debug set to 1: 4.8 MB
> > Load time: 0.4s, 3-4 sec, 1 sec.
>
> > To Martin and Teknoid:
>
> > Can you tell me the memory usage of you sites? I am watching it on
> > layout page inserted line:
> > memory_get_usage() / 1024 / 1024
>
> > And by the way, why on windows cakephp uses 5.5 MB memory, same source
> > on the Linux uses 4.8 MB?
>
> > On Nov 6, 9:40 pm, teknoid <[EMAIL PROTECTED]> wrote:
>
> > > Just did a simple look up on a random page of my app (1.2 RC3, recent
> > > nightly build)
> > > There are three models paginated on the page limit=15 rows.
> > > Total of 18 queries required to get all data, 2 for pagination of the
> > > main Model (with some conditions), 16 for related models...
> > > yes they are little selects on hasMany.
> > > There are a couple of CSS includes from the view and a few jquery
> > > scripts as well.
> > > Debug = 2.
>
> > > Total render time:  0.4857s
>
> > > Simple windows XP PC: 2.33GHz Core Duo, ~ 2GB RAM
>
> > > On Nov 6, 1:50 pm, "[EMAIL PROTECTED]"
>
> > > <[EMAIL PROTECTED]> wrote:
> > > > Ziobe:
> > > > It sounds like you are having some odd problem with that computer. I
> > > > am sorry to say I have no idea of what could be the cause. If 1.2
> > > > works fine on another computer, then the oldest support answer in the
> > > > world might be the only way: reinstall.
>
> > > > On Nov 6, 12:12 pm, Ziobe <[EMAIL PROTECTED]> wrote:
>
> > > > > Just to say that my cakephp project is blank.
> > > > > And even if i try to change the debug, the problem is still here
>
> > > > Remigijus:
> > > > CakePHP 1.2 IS a bit slower than 1.1 in the "real-app" tests I have
> > > > done on my own (roughly 10-30%). But since the difference is more
> > > > pronounced in more complex requests, a lot of that may be that my code
> > > > is not optimised enough for 1.2 yet. I have one benchmark that
> > > > disturbs me but that is best left to it's own thread.
>
> > > > But I am not experiencing anything like what you describe. A simple
> > > > blog-like app I built by taking a chainsaw to the code for the bakery
> > > > is online (http://pensive.eimermusic.com/) with debug @ 1 and it is
> > > > usually rendering in less than 0.05 sec. And that is still on RC2 (=
> > > > the reportedly slow version) and not RC3.
>
> > > > FYI: It is on a single server (core duo2 2.33GHz, 2GB RAM sata
> > > > raid10... nothing special) running mysql5, apache2 and php5 from
> > > > Ubuntu's standard packages. eAccelerator is active but I have not done
> > > > much else to optimize apache/php.
>
> > > > I am only detailing this to give you something to compare to. That
> > > > server is a home-built garage-server that should be comparable to any
> > > > normal computer.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-07 Thread [EMAIL PROTECTED]

Remigijus:
Memory usage is not something you should be overly concerned with on a
development machine. (which I guess is what you are testing) If you
are using WAMP or XAMPP or something like them then you are basically
faking a *nix environment for php to run in. This is probably not the
most memory efficient setup for CakePHP on Windows. Have you tried
running Cake on a more "native" Windows installation? It is a pain to
install (or it was last time I gave it a go) but should run both
faster and more efficient than the *AMPs.

I tried pasting your memory-snipped into my layout and got back
results between 1.3 and 1.5 MB on two different apps. But if I look at
the apache processes, each on is between 12 and 20 MB of system
memory. My point is that 5MB measured may vary with the type of php
installation. I am not knowledgeable about how php measures memory but
I can imagine that as a apache module it measures only "itself" but as
a cgi or fcgi process it may include the overhead of the "cgi-
wrapper". Apache also has a different "worker" setup for Windows that
may affect memory usage.

/Martin


On Nov 7, 9:09 am, Remigijus <[EMAIL PROTECTED]> wrote:
> Well, I found my problem. It's windows. I have put source code on
> Linux, and results are
>
> Memory used with debug set to 1: 4.8 MB
> Load time: 0.4s, 3-4 sec, 1 sec.
>
> To Martin and Teknoid:
>
> Can you tell me the memory usage of you sites? I am watching it on
> layout page inserted line:
> memory_get_usage() / 1024 / 1024
>
> And by the way, why on windows cakephp uses 5.5 MB memory, same source
> on the Linux uses 4.8 MB?
>
> On Nov 6, 9:40 pm, teknoid <[EMAIL PROTECTED]> wrote:
>
> > Just did a simple look up on a random page of my app (1.2 RC3, recent
> > nightly build)
> > There are three models paginated on the page limit=15 rows.
> > Total of 18 queries required to get all data, 2 for pagination of the
> > main Model (with some conditions), 16 for related models...
> > yes they are little selects on hasMany.
> > There are a couple of CSS includes from the view and a few jquery
> > scripts as well.
> > Debug = 2.
>
> > Total render time:  0.4857s
>
> > Simple windows XP PC: 2.33GHz Core Duo, ~ 2GB RAM
>
> > On Nov 6, 1:50 pm, "[EMAIL PROTECTED]"
>
> > <[EMAIL PROTECTED]> wrote:
> > > Ziobe:
> > > It sounds like you are having some odd problem with that computer. I
> > > am sorry to say I have no idea of what could be the cause. If 1.2
> > > works fine on another computer, then the oldest support answer in the
> > > world might be the only way: reinstall.
>
> > > On Nov 6, 12:12 pm, Ziobe <[EMAIL PROTECTED]> wrote:
>
> > > > Just to say that my cakephp project is blank.
> > > > And even if i try to change the debug, the problem is still here
>
> > > Remigijus:
> > > CakePHP 1.2 IS a bit slower than 1.1 in the "real-app" tests I have
> > > done on my own (roughly 10-30%). But since the difference is more
> > > pronounced in more complex requests, a lot of that may be that my code
> > > is not optimised enough for 1.2 yet. I have one benchmark that
> > > disturbs me but that is best left to it's own thread.
>
> > > But I am not experiencing anything like what you describe. A simple
> > > blog-like app I built by taking a chainsaw to the code for the bakery
> > > is online (http://pensive.eimermusic.com/) with debug @ 1 and it is
> > > usually rendering in less than 0.05 sec. And that is still on RC2 (=
> > > the reportedly slow version) and not RC3.
>
> > > FYI: It is on a single server (core duo2 2.33GHz, 2GB RAM sata
> > > raid10... nothing special) running mysql5, apache2 and php5 from
> > > Ubuntu's standard packages. eAccelerator is active but I have not done
> > > much else to optimize apache/php.
>
> > > I am only detailing this to give you something to compare to. That
> > > server is a home-built garage-server that should be comparable to any
> > > normal computer.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-07 Thread Remigijus

Well, I found my problem. It's windows. I have put source code on
Linux, and results are

Memory used with debug set to 1: 4.8 MB
Load time: 0.4s, 3-4 sec, 1 sec.


To Martin and Teknoid:

Can you tell me the memory usage of you sites? I am watching it on
layout page inserted line:
memory_get_usage() / 1024 / 1024

And by the way, why on windows cakephp uses 5.5 MB memory, same source
on the Linux uses 4.8 MB?


On Nov 6, 9:40 pm, teknoid <[EMAIL PROTECTED]> wrote:
> Just did a simple look up on a random page of my app (1.2 RC3, recent
> nightly build)
> There are three models paginated on the page limit=15 rows.
> Total of 18 queries required to get all data, 2 for pagination of the
> main Model (with some conditions), 16 for related models...
> yes they are little selects on hasMany.
> There are a couple of CSS includes from the view and a few jquery
> scripts as well.
> Debug = 2.
>
> Total render time:  0.4857s
>
> Simple windows XP PC: 2.33GHz Core Duo, ~ 2GB RAM
>
> On Nov 6, 1:50 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Ziobe:
> > It sounds like you are having some odd problem with that computer. I
> > am sorry to say I have no idea of what could be the cause. If 1.2
> > works fine on another computer, then the oldest support answer in the
> > world might be the only way: reinstall.
>
> > On Nov 6, 12:12 pm, Ziobe <[EMAIL PROTECTED]> wrote:
>
> > > Just to say that my cakephp project is blank.
> > > And even if i try to change the debug, the problem is still here
>
> > Remigijus:
> > CakePHP 1.2 IS a bit slower than 1.1 in the "real-app" tests I have
> > done on my own (roughly 10-30%). But since the difference is more
> > pronounced in more complex requests, a lot of that may be that my code
> > is not optimised enough for 1.2 yet. I have one benchmark that
> > disturbs me but that is best left to it's own thread.
>
> > But I am not experiencing anything like what you describe. A simple
> > blog-like app I built by taking a chainsaw to the code for the bakery
> > is online (http://pensive.eimermusic.com/) with debug @ 1 and it is
> > usually rendering in less than 0.05 sec. And that is still on RC2 (=
> > the reportedly slow version) and not RC3.
>
> > FYI: It is on a single server (core duo2 2.33GHz, 2GB RAM sata
> > raid10... nothing special) running mysql5, apache2 and php5 from
> > Ubuntu's standard packages. eAccelerator is active but I have not done
> > much else to optimize apache/php.
>
> > I am only detailing this to give you something to compare to. That
> > server is a home-built garage-server that should be comparable to any
> > normal computer.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-06 Thread teknoid

Just did a simple look up on a random page of my app (1.2 RC3, recent
nightly build)
There are three models paginated on the page limit=15 rows.
Total of 18 queries required to get all data, 2 for pagination of the
main Model (with some conditions), 16 for related models...
yes they are little selects on hasMany.
There are a couple of CSS includes from the view and a few jquery
scripts as well.
Debug = 2.

Total render time:  0.4857s

Simple windows XP PC: 2.33GHz Core Duo, ~ 2GB RAM


On Nov 6, 1:50 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Ziobe:
> It sounds like you are having some odd problem with that computer. I
> am sorry to say I have no idea of what could be the cause. If 1.2
> works fine on another computer, then the oldest support answer in the
> world might be the only way: reinstall.
>
> On Nov 6, 12:12 pm, Ziobe <[EMAIL PROTECTED]> wrote:
>
> > Just to say that my cakephp project is blank.
> > And even if i try to change the debug, the problem is still here
>
> Remigijus:
> CakePHP 1.2 IS a bit slower than 1.1 in the "real-app" tests I have
> done on my own (roughly 10-30%). But since the difference is more
> pronounced in more complex requests, a lot of that may be that my code
> is not optimised enough for 1.2 yet. I have one benchmark that
> disturbs me but that is best left to it's own thread.
>
> But I am not experiencing anything like what you describe. A simple
> blog-like app I built by taking a chainsaw to the code for the bakery
> is online (http://pensive.eimermusic.com/) with debug @ 1 and it is
> usually rendering in less than 0.05 sec. And that is still on RC2 (=
> the reportedly slow version) and not RC3.
>
> FYI: It is on a single server (core duo2 2.33GHz, 2GB RAM sata
> raid10... nothing special) running mysql5, apache2 and php5 from
> Ubuntu's standard packages. eAccelerator is active but I have not done
> much else to optimize apache/php.
>
> I am only detailing this to give you something to compare to. That
> server is a home-built garage-server that should be comparable to any
> normal computer.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-06 Thread [EMAIL PROTECTED]

Ziobe:
It sounds like you are having some odd problem with that computer. I
am sorry to say I have no idea of what could be the cause. If 1.2
works fine on another computer, then the oldest support answer in the
world might be the only way: reinstall.


On Nov 6, 12:12 pm, Ziobe <[EMAIL PROTECTED]> wrote:
> Just to say that my cakephp project is blank.
> And even if i try to change the debug, the problem is still here


Remigijus:
CakePHP 1.2 IS a bit slower than 1.1 in the "real-app" tests I have
done on my own (roughly 10-30%). But since the difference is more
pronounced in more complex requests, a lot of that may be that my code
is not optimised enough for 1.2 yet. I have one benchmark that
disturbs me but that is best left to it's own thread.

But I am not experiencing anything like what you describe. A simple
blog-like app I built by taking a chainsaw to the code for the bakery
is online (http://pensive.eimermusic.com/) with debug @ 1 and it is
usually rendering in less than 0.05 sec. And that is still on RC2 (=
the reportedly slow version) and not RC3.

FYI: It is on a single server (core duo2 2.33GHz, 2GB RAM sata
raid10... nothing special) running mysql5, apache2 and php5 from
Ubuntu's standard packages. eAccelerator is active but I have not done
much else to optimize apache/php.

I am only detailing this to give you something to compare to. That
server is a home-built garage-server that should be comparable to any
normal computer.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-06 Thread Remigijus

Dave J:

I have very (very!) small page that using postgresql database with 20
rows at all. In the config file I have found this line:
Cache::config('default', array('engine' => 'File'));

How cache can affect website memory usage and speed?

By the way, is anyone using website made by CakePHP version 1.2? Have
you any problems with speed or memory usage?


On Nov 6, 2:38 pm, Dave J <[EMAIL PROTECTED]> wrote:
> Are you using any op-code caches (APC, eAccelerator or XCache) ?
>
> On Nov 6, 11:53 am, Remigijus <[EMAIL PROTECTED]> wrote:
>
> > I have set debug mode to zero. But still framework uses
>
> > Memory used: 5.42 MB
>
> > And loads about 1 sec. I have done some benchmarks, and without models
> > loaded, site uses 2.6MB memory, with empty model (and set param
> > useTable to null, and recursion to -1) it uses 5.42. Where is the
> > problem, please help me ;(
>
> > On Nov 6, 1:12 pm, Ziobe <[EMAIL PROTECTED]> wrote:
>
> > > Just to say that my cakephp project is blank.
> > > And even if i try to change the debug, the problem is still here
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-06 Thread Dave J

Are you using any op-code caches (APC, eAccelerator or XCache) ?


On Nov 6, 11:53 am, Remigijus <[EMAIL PROTECTED]> wrote:
> I have set debug mode to zero. But still framework uses
>
> Memory used: 5.42 MB
>
> And loads about 1 sec. I have done some benchmarks, and without models
> loaded, site uses 2.6MB memory, with empty model (and set param
> useTable to null, and recursion to -1) it uses 5.42. Where is the
> problem, please help me ;(
>
> On Nov 6, 1:12 pm, Ziobe <[EMAIL PROTECTED]> wrote:
>
> > Just to say that my cakephp project is blank.
> > And even if i try to change the debug, the problem is still here
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-06 Thread Remigijus

I have set debug mode to zero. But still framework uses

Memory used: 5.42 MB

And loads about 1 sec. I have done some benchmarks, and without models
loaded, site uses 2.6MB memory, with empty model (and set param
useTable to null, and recursion to -1) it uses 5.42. Where is the
problem, please help me ;(


On Nov 6, 1:12 pm, Ziobe <[EMAIL PROTECTED]> wrote:
> Just to say that my cakephp project is blank.
> And even if i try to change the debug, the problem is still here
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-06 Thread Ziobe

Just to say that my cakephp project is blank.
And even if i try to change the debug, the problem is still here
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-06 Thread Dardo Sordi Bogado

I don't get it, even in debug mode I always get response times in ms,
even in modest laptops/desktop machines... always in linux ;)

- Dardo Sordi.

On Thu, Nov 6, 2008 at 8:30 AM, AD7six <[EMAIL PROTECTED]> wrote:
>
>
>
> On Nov 6, 11:24 am, Remigijus <[EMAIL PROTECTED]> wrote:
>> Latest CakePHP framework 10x times faster?
>>
>> I have upgraded to latest version, and my empty page before:
>> used 5.5 MB of memory
>> loaded in 1.2s
>>
>> After upgraded:
>> used 5.6 of memory
>> loaded in 2.3s
>>
>> Where is that 'faster'?
>>
>> I have tested in 3 apache servers. Tested with both 1.2 stable and 1.2
>> latest release. So where is the problem?
>
> In you testing load times with any or all of the typical causes
> (search the group) applying - most notable: having debug enabled.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-06 Thread AD7six



On Nov 6, 11:24 am, Remigijus <[EMAIL PROTECTED]> wrote:
> Latest CakePHP framework 10x times faster?
>
> I have upgraded to latest version, and my empty page before:
> used 5.5 MB of memory
> loaded in 1.2s
>
> After upgraded:
> used 5.6 of memory
> loaded in 2.3s
>
> Where is that 'faster'?
>
> I have tested in 3 apache servers. Tested with both 1.2 stable and 1.2
> latest release. So where is the problem?

In you testing load times with any or all of the typical causes
(search the group) applying - most notable: having debug enabled.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Cake 1.2 is slow (4s...)

2008-11-06 Thread Remigijus

Latest CakePHP framework 10x times faster?


I have upgraded to latest version, and my empty page before:
used 5.5 MB of memory
loaded in 1.2s

After upgraded:
used 5.6 of memory
loaded in 2.3s

Where is that 'faster'?

I have tested in 3 apache servers. Tested with both 1.2 stable and 1.2
latest release. So where is the problem?


On Nov 6, 12:04 pm, Ziobe <[EMAIL PROTECTED]> wrote:
> Hello, i want to use Cake 1.2 but for render a page it takes more than
> 4sec
>
> I try Cake 1.1, CodeIgniter, Drupal and all of that things are fully
> working on my computer.
> But cake 1.2 don't want. I Also tried on another computer and it's
> works.
> I don't know what to do can you help me ?
> I'm on windows i use the latest Wamp package (also tried with XAMPP
> same problem)
> (sorry for my bad english)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



[Problem] Cake 1.2 is slow (4s...)

2008-11-06 Thread Ziobe

Hello, i want to use Cake 1.2 but for render a page it takes more than
4sec

I try Cake 1.1, CodeIgniter, Drupal and all of that things are fully
working on my computer.
But cake 1.2 don't want. I Also tried on another computer and it's
works.
I don't know what to do can you help me ?
I'm on windows i use the latest Wamp package (also tried with XAMPP
same problem)
(sorry for my bad english)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---