digitalmars.D.ide - Visual D is very slow when pasting large data
- Mike B Johnson (2/2) Jun 06 2017 If I try to paste a several thousand line D file in to an open D
- Rainer Schuetze (4/6) Jun 06 2017 Unfortunately, it is. The auto indentation is not optimized for this
- Mike B Johnson (4/11) Jun 07 2017 So this only happens on paste and not when loading a new file?
- Rainer Schuetze (10/23) Jun 08 2017 The indentation should not have any effect on reloading a file, so a
- Mike B Johnson (2/18) Jun 09 2017 Looks like you've been busy! Thanks!
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?
Jun 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".
Jun 06 2017
On Tuesday, 6 June 2017 at 18:44:04 UTC, Rainer Schuetze wrote:On 06.06.2017 16:57, Mike B Johnson 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...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".
Jun 07 2017
On 07.06.2017 12:04, Mike B Johnson wrote:On Tuesday, 6 June 2017 at 18:44:04 UTC, Rainer Schuetze wrote: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-beta1On 06.06.2017 16:57, Mike B Johnson 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...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".
Jun 08 2017
On Friday, 9 June 2017 at 06:58:23 UTC, Rainer Schuetze wrote:On 07.06.2017 12:04, Mike B Johnson wrote:Looks like you've been busy! Thanks!On Tuesday, 6 June 2017 at 18:44:04 UTC, Rainer Schuetze wrote: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[...]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...
Jun 09 2017