GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — perf: remove redundant array deepcopy by grooveygr · Pull Request #26 · googleapis/python-bigquery

This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Conversation

@grooveygr

@grooveygr grooveygr commented Feb 6, 2020

Copy link
Copy Markdown
Contributor

Deepcopy can be a very costly operation when considering large arrays with complex nested objects.
Refactor helpers to allow recursive conversion without copying arrays.

Fixes #6 🦕

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@grooveygr
perf(bigquery): remove redundant array deepcopy
bab93e0
deepcopy can be a very costly operation when considering large arrays with complex nested objects.
refactor helpers to allow recursive conversion without copying arrays.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 6, 2020
@plamut plamut mentioned this pull request Feb 10, 2020
perf(bigquery): remove redundant array deepcopy googleapis/google-cloud-python#10139
Closed
@tseaver tseaver changed the title perf(bigquery): remove redundant array deepcopy perf: remove redundant array deepcopy Jul 30, 2020
@tseaver
Merge branch 'master' into master
7343175
@tseaver tseaver added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 30, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 30, 2020
@tseaver
tseaver requested a review from plamut July 30, 2020 18:09
@tseaver

tseaver commented Jul 30, 2020

Copy link
Copy Markdown
Contributor

@plamut I'm less familiar than you with this bit of the code. PTAL.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96 busunkim96 closed this Jul 31, 2020
@busunkim96 busunkim96 reopened this Jul 31, 2020
@tseaver
Merge branch 'master' into master
38a529e
@tseaver tseaver added the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Aug 6, 2020
@tswast
Merge branch 'master' into master
0a1643e
@tswast
tswast requested a review from a team September 24, 2020 21:13
tswast
tswast suggested changes Sep 24, 2020
View reviewed changes
Comment thread tests/unit/test__helpers.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

tswast added 2 commits October 6, 2020 16:37
@tswast
Merge branch 'master' into master
f60bd11
@tswast
add check to ignore REPEATED mode
c9d862d
tswast
tswast approved these changes Oct 6, 2020
View reviewed changes
@tswast tswast added the kokoro:run Add this label to force Kokoro to re-run the tests. label Oct 6, 2020
busunkim96
busunkim96 reviewed Oct 6, 2020
View reviewed changes
Comment thread google/cloud/bigquery/_helpers.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@tswast @busunkim96
Update google/cloud/bigquery/_helpers.py
54852ae
Co-authored-by: Bu Sun Kim <[email protected]>
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Oct 6, 2020
@tswast tswast added the kokoro:run Add this label to force Kokoro to re-run the tests. label Oct 6, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Oct 6, 2020
@tswast
tswast merged commit b54f867 into googleapis:master Oct 7, 2020
gcf-merge-on-green Bot pushed a commit that referenced this pull request Oct 8, 2020
@release-please
chore: release 2.1.0 (#301)
1a4dc12
🤖 I have created a release \*beep\* \*boop\* 
---
## [2.1.0](https://www.github.com/googleapis/python-bigquery/compare/v2.0.0...v2.1.0) (2020-10-08)


### Features

* add constants for MONTH and YEAR time partitioning types ([#283](https://www.github.com/googleapis/python-bigquery/issues/283)) ([9090e1c](https://www.github.com/googleapis/python-bigquery/commit/9090e1ccd8825a97835325b4829f6e7ecfd9ea88))


### Bug Fixes

* remove unnecessary dependency on libcst ([#308](https://www.github.com/googleapis/python-bigquery/issues/308)) ([c055930](https://www.github.com/googleapis/python-bigquery/commit/c05593094c1405f752b2c51b15202a6dbb5cb83f))


### Performance Improvements

* remove redundant array deepcopy ([#26](https://www.github.com/googleapis/python-bigquery/issues/26)) ([b54f867](https://www.github.com/googleapis/python-bigquery/commit/b54f86769c982ce5c8fcbf3889f82450428bb40c))


### Documentation

* **samples:** add create_table_clustered code snippet ([#291](https://www.github.com/googleapis/python-bigquery/issues/291)) ([d1eb8b3](https://www.github.com/googleapis/python-bigquery/commit/d1eb8b3dcc789916c5d3ba8464f62b1f8bef35ff))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
@release-please release-please Bot mentioned this pull request Jan 4, 2022
chore(main): release python-bigquery 1.27.1 #1097
Closed
@tswast tswast mentioned this pull request Dec 6, 2024
feat: adds Schema class and modifies schema handling #2081
Closed
3 tasks
@chalmerlowe chalmerlowe mentioned this pull request Apr 15, 2025
feat: adds condition class and assoc. unit tests #2159
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@plamut plamut Awaiting requested review from plamut
2 more reviewers
@tswast tswast tswast approved these changes
@busunkim96 busunkim96 busunkim96 left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BigQuery: complex repeated schema fields are slow

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@grooveygr @tseaver @tswast @busunkim96 @googlebot @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.