1. file access in Euphoria


When i do <eucode>writefile = open()</eucode> , that's not accessable for me to re-write unless i call it something else and write new C? My desire would be to add a task_yield() to it while the OS checks to see if the path\file already exists or not. On a harddrive with 1000's of directories and millions of files per directory, the OS takes a lot of time deciding if it will allow access. If Eu isn't doing anything, and the call to open() isn't in a task, the task_yield() consumes no time(?) and so to add this is painless?

I am asking this for WinXP and NTFS. It cannot possibly cache in ram all the directory listing (in this case), and disc thrashing occurs. I don't think adding task_yield to write or read would help, but it may help open() a lot.

useless,maybe

new topic     » topic index » view message » categorize

2. Re: file access in Euphoria

Hi

Unless Kat can confirm this is her post, I'm going to delete it. I see there is an underscore at the end, but to use such a similar name is really bad form.

Chris

new topic     » goto parent     » topic index » view message » categorize

3. Re: file access in Euphoria

ChrisB said...

Hi

Unless Kat can confirm this is her post, I'm going to delete it. I see there is an underscore at the end, but to use such a similar name is really bad form.

Chris

You can take it on my authority that this is really Kat's post. I recall that Kat had issues logging into her older accounts (nor was she the only one, CoJaBo also had issues), hence the new name....

new topic     » goto parent     » topic index » view message » categorize

4. Re: file access in Euphoria

Kat seems to be using useless_ now. Perhaps she lost her password? Is useless_ a new user? Are there any records such as IP address that might confirm that this is the real Kat?

new topic     » goto parent     » topic index » view message » categorize

5. Re: file access in Euphoria

Lnettnay said...

Kat seems to be using useless_ now. Perhaps she lost her password? Is useless_ a new user? Are there any records such as IP address that might confirm that this is the real Kat?

I can't see anything that makes me doubt this is the same Kat.

Matt

new topic     » goto parent     » topic index » view message » categorize

6. Re: file access in Euphoria

useless_ said...

When i do <eucode>writefile = open()</eucode> , that's not accessable for me to re-write unless i call it something else and write new C? My desire would be to add a task_yield() to it while the OS checks to see if the path\file already exists or not. On a harddrive with 1000's of directories and millions of files per directory, the OS takes a lot of time deciding if it will allow access. If Eu isn't doing anything, and the call to open() isn't in a task, the task_yield() consumes no time(?) and so to add this is painless?

I am asking this for WinXP and NTFS. It cannot possibly cache in ram all the directory listing (in this case), and disc thrashing occurs. I don't think adding task_yield to write or read would help, but it may help open() a lot.

I don't see a way to get that to work within the current euphoria multi-tasking framework. I would think that you'd need pre-emptive multitasking (i.e., threading) to get that to work. We could call task_yield(), but that would only happen after the call to open() had returned, which defeats the purpose of what you're looking to achieve.

It's possible that using Windows' Asynchronous I/O capabilities would solve your problem. I've never used them, though I know it makes things more complicated than "normal" synchronous I/O. Though I somewhat doubt that the call to CreateFile() (the Windows API equivalent to open()) is itself asynchronous, so this may not work for you, either.

Matt

new topic     » goto parent     » topic index » view message » categorize

7. Re: file access in Euphoria

Kat: Maybe this might help ?

http://rapideuphoria.com/cgi-bin/asearch.exu?win=on&lnx=on&keywords=thread

Bernie

new topic     » goto parent     » topic index » view message » categorize

8. Re: file access in Euphoria

jimcbrown said...
ChrisB said...

Hi

Unless Kat can confirm this is her post, I'm going to delete it. I see there is an underscore at the end, but to use such a similar name is really bad form.

Chris

You can take it on my authority that this is really Kat's post. I recall that Kat had issues logging into her older accounts (nor was she the only one, CoJaBo also had issues), hence the new name....


An example of why i hate fighting with you, jim, you have good lucid moments.

Regarding the nick and nick and nick, there were issues with changing from RDS on their site (using email listserv) to openeuphoria, the change to the http forum instead of email, the constant fiasco in the 1990's of the many phone companies that owned the lines here, their inability to cooperate when i had to use long distance analog LAN to get online, winxpee doing a search and destroy on all my win95b files (and all the backups), and then not being able to recover passwords in this forum, or make a new account (because the email address was already in use). I gave up and just went with whatever i was allowed to do. I even had to let my internet domains expire and grab them back, because my isp (at that point) had gone out of business and i couldn't reply to verification emails, i actually drove up to the registrar and talked to them over the table one day. And finally, the inability to have contributions accepted here (Like it taking *4 years* to get a couple fixes added into http.e as of this week!) contributed to my current nick.

So you know, whatever. The nick "useless" sums up my value here, seems apropo to use it.

useless,maybe

new topic     » goto parent     » topic index » view message » categorize

9. OT: Re: file access in Euphoria

jimcbrown said...

I recall that Kat had issues logging into her older accounts (nor was she the only one, CoJaBo also had issues), hence the new name....

eukat said...

An example of why i hate fighting with you, jim, you have good lucid moments.

All I meant by this was the addition of the underscore.

new topic     » goto parent     » topic index » view message » categorize

10. OT: Re: file access in Euphoria

jimcbrown said...
jimcbrown said...

I recall that Kat had issues logging into her older accounts (nor was she the only one, CoJaBo also had issues), hence the new name....

eukat said...

An example of why i hate fighting with you, jim, you have good lucid moments.

All I meant by this was the addition of the underscore.


I don't know when or why the "tail" was added.

useless,maybe

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu