Visual D is very slow when pasting large data
Rainer Schuetze via Digitalmars-d-ide
digitalmars-d-ide at puremagic.com
Thu Jun 8 23:58:23 PDT 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
More information about the Digitalmars-d-ide
mailing list