Welcome, Guest. Please login or register.

Author Topic: CopyMem Quick & Small released!  (Read 14394 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline psxphill

Re: CopyMem Quick & Small released!
« Reply #14 from previous page: January 11, 2015, 09:54:05 AM »
Quote from: itix;781182
That is just multitasking unfriendly editor. It is different requirement.

No it is exactly the same requirement as the text editor being able to use as much of your cpu as it wants as long as it can keep up with your typing. If you have other secret requirements that are obvious to you then you should specify them.
 
There may be software running in the background that needs to run at a high priority so that only 50% of cpu is left. The text editor needing 100% of cpu to keep up with typing is now unable to keep up with your typing.

I'm using quite extreme examples because it makes the maths easier, I understand that you can't practically optimise everything completely and there is an upper limit on the cpu resources available.
 
 There are other vague issues like not saying how big the document is when you measure if it's able to keep up. A text editor that is designed for editing large documents will be able to insert and delete text in the middle without CopyMem()'ing the rest of the document around every time you type a character. On windows I regularly edit text files 100's of megabytes in size.
« Last Edit: January 11, 2015, 10:00:22 AM by psxphill »
 

Offline psxphill

Re: CopyMem Quick & Small released!
« Reply #15 on: January 11, 2015, 01:51:09 PM »
Quote from: itix;781476
I thought it was obvious to you that Amiga software should not use busy loops when doing nothing.

When making a statement that the ONLY thing important with performance of a text editor is it can keep up with typing speed then it's actually not obvious at all. If you are making assumptions about what the statement really means, then you're agreeing with something without actually understanding the point it's making.

By saying there are loads of little implied things that we have to know, then making the statement in the first place is irrelevant as it's trying to say there is only one thing you have to know.
 
 Ed isn't fast enough.
 

Offline psxphill

Re: CopyMem Quick & Small released!
« Reply #16 on: January 11, 2015, 09:33:33 PM »
Quote from: olsen;781487
There must have been a reason why TRIPOS was picked for the Amiga, other than there was time pressure and not many other options were available then.

 I think the main consideration was that it was quick to graft it onto exec. If they'd had to wait a long time then they may as well have developed CAOS.
 
 It probably was the only 68000 operating system that they could have used.
 

Offline psxphill

Re: CopyMem Quick & Small released!
« Reply #17 on: January 12, 2015, 09:08:24 PM »
Quote from: Fats;781552
I've been told that the weird design was actually thought through: it was to reduce the risk on mechanical typewriters with the next letter getting stuck on the returning previous letter.

well there are two reasons listed on Wikipedia http://en.wikipedia.org/wiki/QWERTY#History_and_purposes
 
 reduce jams and trying to distribute letters evenly.
 

Offline psxphill

Re: CopyMem Quick & Small released!
« Reply #18 on: January 13, 2015, 05:14:40 PM »
Quote from: Cosmos;781615
Don't care about the code time for me : I just want PERFECT code...

Sometimes I can think many days about one small routine to find finally his Truth... Just like SpeedGeek with CopyMem & CopyMemQuick !

Sure we've all been there. If you can write something the fastest possible then it feels good. If you ever get the ambition to work on something bigger then you will run out of time pretty quick.

 I try to balance optimising algorithms and code quality and have the compiler worry about what registers to use etc.