Thread overview
Visual D is very slow when pasting large data
Jun 06, 2017
Mike B Johnson
Jun 06, 2017
Rainer Schuetze
Jun 07, 2017
Mike B Johnson
Jun 09, 2017
Rainer Schuetze
Jun 10, 2017
Mike B Johnson
June 06, 2017
If I try to paste a several thousand line D file in to an open D file, Visual D stalls for about 30 seconds... Is this normal?
June 06, 2017

On 06.06.2017 16:57, Mike B Johnson wrote:
> If I try to paste a several thousand line D file in to an open D file, Visual D stalls for about 30 seconds... Is this normal?

Unfortunately, it is. The auto indentation is not optimized for this case. You can avoid the pause by disabling "Reindent new lines after paste" on the global options page "Text Editor->D->Colorizer".
June 07, 2017
On Tuesday, 6 June 2017 at 18:44:04 UTC, Rainer Schuetze wrote:
>
>
> On 06.06.2017 16:57, Mike B Johnson wrote:
>> If I try to paste a several thousand line D file in to an open D file, Visual D stalls for about 30 seconds... Is this normal?
>
> Unfortunately, it is. The auto indentation is not optimized for this case. You can avoid the pause by disabling "Reindent new lines after paste" on the global options page "Text Editor->D->Colorizer".

So this only happens on paste and not when loading a new file? (If I do it outside of VS and VS reloads it, it happens immediately...
June 09, 2017

On 07.06.2017 12:04, Mike B Johnson wrote:
> On Tuesday, 6 June 2017 at 18:44:04 UTC, Rainer Schuetze wrote:
>>
>>
>> On 06.06.2017 16:57, Mike B Johnson wrote:
>>> If I try to paste a several thousand line D file in to an open D file, Visual D stalls for about 30 seconds... Is this normal?
>>
>> Unfortunately, it is. The auto indentation is not optimized for this case. You can avoid the pause by disabling "Reindent new lines after paste" on the global options page "Text Editor->D->Colorizer".
> 
> So this only happens on paste and not when loading a new file? (If I do it outside of VS and VS reloads it, it happens immediately...

The indentation should not have any effect on reloading a file, so a long pause is unexpected there.

In case you are running a version built on AppVeyor: there is a difference to a normal release in that it uses a stock dmd compiler. The official releases use a D runtime with a precise GC that can have a large impact on memory consumption. If you are editing large files this can make quite a difference.

You might want to try the new beta release here: https://github.com/dlang/visuald/releases/tag/v0.45.0-beta1
June 10, 2017
On Friday, 9 June 2017 at 06:58:23 UTC, Rainer Schuetze wrote:
>
>
> On 07.06.2017 12:04, Mike B Johnson wrote:
>> On Tuesday, 6 June 2017 at 18:44:04 UTC, Rainer Schuetze wrote:
>>> [...]
>> 
>> So this only happens on paste and not when loading a new file? (If I do it outside of VS and VS reloads it, it happens immediately...
>
> The indentation should not have any effect on reloading a file, so a long pause is unexpected there.
>
> In case you are running a version built on AppVeyor: there is a difference to a normal release in that it uses a stock dmd compiler. The official releases use a D runtime with a precise GC that can have a large impact on memory consumption. If you are editing large files this can make quite a difference.
>
> You might want to try the new beta release here: https://github.com/dlang/visuald/releases/tag/v0.45.0-beta1

Looks like you've been busy! Thanks!