Re: Livecode performance problem

2022-08-20 Thread doc hawk via use-livecode
Short version: inserting between is a much slower process than after, as the 
entire field/string/whatever from the post of insertion has to be moved or 
otherwise handled.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Livecode performance problem

2022-08-20 Thread Paul Dupuis via use-livecode

Thank you!

The prior solutions have dramatically reduced the time - the WHOLE 
analytics process in its entirety because of the slowness of my old code 
was taking HOURS (like 6-10) - and is now down to 30-35 minutes with the 
prior solutions. I can't wait to tr the combine by columns method to see 
how much more (40%! WOW!) it reduced the overall process time further!



On 8/20/2022 5:59 PM, Alex Tweedly via use-livecode wrote:
I can't answer for anyone else, but for me - because I never thought 
about it :-)


Combine by column - never used it before, so never thought of it.

It's significantly faster, roughly 40% improvement over the previous 
best.


Note, the spec requires that each line begins with the line number, so 
you need to add something like:



   local tmp
   repeat with i = 1 to the number of lines in g1
  put i  after tmp
   end repeat
   put tmp into x[1]

   put g1 into x[2]
   put g2 into x[3]
   put g3 into x[4]
   put g4 into x[5]

and finish off with

   combine x by column
   put cr after x

to fully match the earlier results.

Alex.

On 20/08/2022 18:45, David Epstein via use-livecode wrote:

I didn’t text the speed, but why not

put fld A into x[1]
put fld B into x[2]
put fld C into x[3]
put fld D into x[4]
combine x by column
return x


I have a set of fields, call them A, B, C, and D. Each has the same
number of lines. Each field has different text (per line)

I need to combine the data - frequently - into a form that look like:




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: A few issues with web apps

2022-08-20 Thread J. Landman Gay via use-livecode

On 8/18/22 2:52 PM, I wrote:

All in all, everything else works, which is really quite incredible.


When I accidentally started replying to Andreas privately instead of to the list (I should pay 
more attention, geez) he suggested others may want to see my test app. Thanks to Andreas for 
being so polite about it.


So here you go:



On desktop browsers, everything works great. On mobile it works pretty well except for text 
entry and a minor display issue.


On mobile it isn't possible to drag-select text in editable fields. Typing is iffy as well, and 
depending on the (Android) keyboard you use, the cursor can be misaligned and/or key presses 
don't always insert entries. I didn't test on iOS.


I've added a simple behavior to all the scrolling fields and removed the ugly field scrollbar. 
It tracks the mouse movement and scrolls the field accordingly. That works on desktop but 
doesn't work on mobile. This matches the behavior of anything draggable: the slider widget 
button, the buttons in the Population example that use "grab", and the LC field scroller thumb.


On both desktop and mobile, text styling isn't working. Some of the text in the "What is this?" 
substack should be bold but displays as plain. On the other hand, the substack does display 
correctly layered over the mainstack. I had wondered if it would work, and it does.


I know this will all get fixed so I'm not worried. This is just an example of where we're at 
right now for anyone curious. Overall, web deployment is very impressive. I was surprised at 
how good it is even in an unfinished state.


BTW, the ideas behind this stack are not original. I first re-created them in MetaCard based on 
online discussions 20 years ago, and when I opened it recently in LC 10 the stack opened 
without error. Kudos to Mark Waddingham's attention to backward compatibility.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Livecode performance problem

2022-08-20 Thread Alex Tweedly via use-livecode
I can't answer for anyone else, but for me - because I never thought 
about it :-)


Combine by column - never used it before, so never thought of it.

It's significantly faster, roughly 40% improvement over the previous best.

Note, the spec requires that each line begins with the line number, so 
you need to add something like:



   local tmp
   repeat with i = 1 to the number of lines in g1
  put i  after tmp
   end repeat
   put tmp into x[1]

   put g1 into x[2]
   put g2 into x[3]
   put g3 into x[4]
   put g4 into x[5]

and finish off with

   combine x by column
   put cr after x

to fully match the earlier results.

Alex.

On 20/08/2022 18:45, David Epstein via use-livecode wrote:

I didn’t text the speed, but why not

put fld A into x[1]
put fld B into x[2]
put fld C into x[3]
put fld D into x[4]
combine x by column
return x


I have a set of fields, call them A, B, C, and D. Each has the same
number of lines. Each field has different text (per line)

I need to combine the data - frequently - into a form that look like:




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Livecode performance problem

2022-08-20 Thread David Epstein via use-livecode
I didn’t text the speed, but why not

put fld A into x[1]
put fld B into x[2]
put fld C into x[3]
put fld D into x[4]
combine x by column
return x

> 
> I have a set of fields, call them A, B, C, and D. Each has the same 
> number of lines. Each field has different text (per line)
> 
> I need to combine the data - frequently - into a form that look like:
> 
>  C>


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: A few issues with web apps

2022-08-20 Thread Kevin Miller via use-livecode
Don't worry the goal is for zero workarounds by the time we're ready to ship 
GM. These things are just there to keep you going in the mean time.

Kind regards,

Kevin

Kevin Miller ~ ke...@livecode.com ~ http://www.livecode.com/
LiveCode: Develop Yourself

On 19/08/2022, 18:16, "use-livecode on behalf of Tweedly via use-livecode" 
 wrote:


> On 19 Aug 2022, at 16:01, panagiotis m via use-livecode 
 wrote:
> 
> Hello all,
> 
> BTW, I just wrote a lesson on how to scroll a LC text field on Web using
> :
>> 
Thank you. 
But at the risk of sounding ungrateful - please don’t.
Please just make basic functionality like resizing, scrolling, etc. Work 
properly and nicely out of the box.
Alex.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode