Repository navigation
WIP: Adding typed import of Csv - #8860
Staffan Gustafsson (powercode) wants to merge 1 commit into
Conversation
c6b21dc to
59d7a5f
Compare
|
Do you think it would make sense to let the cmdlet create a default type of the ResultType based on the CSV header (i.e. create a default class with string properties for-each column)? This way the average consumer would still benefit from it without having to specify complex parameters and defining the custom class would then be an additional, optional optimisation on top of it? |
|
It may. But I think we should have that discussion in the issue :) #8862 |
|
This PR has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 10 days. |
|
This PR has been automatically closed because it is stale. If you wish to continue working on the PR, please first update the PR, then reopen it. |
PR Summary
Adding ResultType parameter to Import-CSV, and uses that to drastically improve both the import time and memory usage.
This is still a work in progress, but I thought I might let people try it out or comment on the design before we start a regular review.
PR Context
On a csv with half a million rows and 200 columns of random integers
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.[feature]to your commit messages if the change is significant or affects feature tests