Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new directio module #43879

Closed
oaitmous mannequin opened this issue Aug 23, 2006 · 2 comments
Closed

new directio module #43879

oaitmous mannequin opened this issue Aug 23, 2006 · 2 comments
Labels
extension-modules C modules in the Modules dir

Comments

@oaitmous
Copy link
Mannequin

oaitmous mannequin commented Aug 23, 2006

BPO 1545275
Nosy @loewis
Files
  • directio.patch: patch v1
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2006-08-25.00:24:59.000>
    created_at = <Date 2006-08-23.13:12:09.000>
    labels = ['extension-modules']
    title = 'new directio module'
    updated_at = <Date 2006-08-25.00:24:59.000>
    user = 'https://bugs.python.org/oaitmous'

    bugs.python.org fields:

    activity = <Date 2006-08-25.00:24:59.000>
    actor = 'loewis'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Extension Modules']
    creation = <Date 2006-08-23.13:12:09.000>
    creator = 'oaitmous'
    dependencies = []
    files = ['7497']
    hgrepos = []
    issue_num = 1545275
    keywords = ['patch']
    message_count = 2.0
    messages = ['50980', '50981']
    nosy_count = 2.0
    nosy_names = ['loewis', 'oaitmous']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1545275'
    versions = []

    @oaitmous
    Copy link
    Mannequin Author

    oaitmous mannequin commented Aug 23, 2006

    This module is an interface to the
    open(),read(),write() and close() system calls on a
    Direct I/O context (O_DIRECT flag to the open() system
    call).
    The O_DIRECT flag allows to open a file in "direct"
    mode -- effectively bypassing the buffer-cache. This
    behaviour is generally not a good thing since it will
    strongly degrade performances, but it can be desirable
    for some purposes (benchmark, or optimized read of many
    concurrent video streams, for instance). A special
    interface is needed, since the read() system calls
    requires aligned buffers when used on O_DIRECT file
    descriptors. And since the flag O_DIRECT is not
    available with the os module, we decided to write this
    module.

    We would like to know if this is worth for inclusion
    in the standard Python distribution? What should be
    modified to make it more "compliant" to the python
    rules? This file will probably need to be updated to
    conform to python style standards.

    @oaitmous oaitmous mannequin closed this as completed Aug 23, 2006
    @oaitmous oaitmous mannequin added the extension-modules C modules in the Modules dir label Aug 23, 2006
    @oaitmous oaitmous mannequin closed this as completed Aug 23, 2006
    @oaitmous oaitmous mannequin added the extension-modules C modules in the Modules dir label Aug 23, 2006
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Aug 25, 2006

    Logged In: YES
    user_id=21627

    The major problem with this module is that it is LGPL; for inclusion in the
    library, a contribution form to the PSF would be required and your license be
    changed.

    In any case, it's not clear what the applicability of this specialized API is. My
    suggestion would be to package it up with distutils and put it on the
    Cheeseshop (cheeseshop.python.org). When there is an established user
    base, and demand that it be included in the standard distribution, inclusion
    should be discussed on python-dev.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants